package HotelOfPumpkin;

import HotelOfPumpkin.Desktop.Desktop;
import HotelOfPumpkin.Gui.internal.MainWindows;

/**
 * 
 */

/**
 * @author Chensc
 *
 */
public class HotelOfPumpkin {
	
	static public String VER = "v0.00.001";
	
	private MainWindows windowsHandle;
	
	/** Constructed function
	 * 
	 */
	public HotelOfPumpkin() {
		// Create GUI
		 windowsHandle = new MainWindows(VER);
	}
	
	/** Start the game now
	 * 
	 */
	private void start() {
		/* Prepare GUI, set visible, start */
		windowsHandle.start();
		
		// Create kernel
		final Desktop kernel = new Desktop();
		
		kernel.connectInterface(windowsHandle);
		
		// Game Start
		kernel.start();
	}
	
	/** main function for Hotel of Pumpkin II
	 * @param args
	 */
	public static void main(String[] args) {
		final HotelOfPumpkin gameHotelOfPumpkin = new HotelOfPumpkin();		
		// Game start
		gameHotelOfPumpkin.start();	
	}
	
}
